<?php $form->setDefaults($filter->array); ?>

<?php
	echo jq_form_remote_tag(
		array(
			'url'      => 'mailing_list/filter',
 			'update'   => 'list'
		),
		array(
			'name' => 'form_filer_mailing_list',
			'id' => 'form_filer_mailing_list'
		)
	);
?>

<?php echo input_hidden_tag('filtro', '1'); ?>

<table class="form">
	<tr><th colspan="2" class="title">Filtro</th></tr>
    <tr>
        <th><?php echo $form['id_mailing_group']->renderLabel() ?></th>
        <td>
        	<?php
        		echo $form['id_mailing_group']->render(
        			array(
        				'name' => 'filter[id_mailing_group]'
        			)
        		)
        	?>
        </td>
    </tr>
    <tr>
        <th><?php echo $form['ds_nome_list']->renderLabel() ?></th>
        <td>
        	<?php
        		echo $form['ds_nome_list']->render(
        			array(
        				'name' => 'filter[ds_nome_list]'
        			)
        		)
        	?>
        </td>
    </tr>
    <tr>
        <th><?php echo $form['ds_email_list']->renderLabel() ?></th>
        <td>
        	<?php
        		echo $form['ds_email_list']->render(
        			array(
        				'name' => 'filter[ds_email_list]'
        			)
        		)
        	?>
        </td>
    </tr>
    <tr>
        <th><?php echo $form['st_mailing_list']->renderLabel() ?></th>
        <td>
        	<?php
        		echo $form['st_mailing_list']->render(
        			array(
        				'name' => 'filter[st_mailing_list]'
        			)
        		)
        	?>
        </td>
    </tr>
    <tr>
        <th><?php echo $form['st_envio_list']->renderLabel() ?></th>
        <td>
        	<?php
        		echo $form['st_envio_list']->render(
        			array(
        				'name' => 'filter[st_envio_list]'
        			)
        		)
        	?>
        </td>
    </tr>
    <tr>
        <th><?php echo $form['dt_envio_list']->renderLabel() ?></th>
        <td>
        	<?php
        		echo $form['dt_envio_list']->render(
        			array(
        				'name' => 'filter[dt_envio_list]'
        			)
        		)
        	?>
        </td>
    </tr>
    <tr>
        <th><?php echo $form['created_at']->renderLabel() ?></th>
        <td>
        	<?php
        		echo $form['created_at']->render(
        			array(
        				'name' => 'filter[created_at]'
        			)
        		)
        	?>
        </td>
    </tr>
    <tr>
        <th><?php echo $form['updated_at']->renderLabel() ?></th>
        <td>
        	<?php
        		echo $form['updated_at']->render(
        			array(
        				'name' => 'filter[updated_at]'
        			)
        		)
        	?>
        </td>
    </tr>
    <tr>
        <th><?php echo $form['deleted']->renderLabel() ?></th>
        <td>
        	<?php
        		echo $form['deleted']->render(
        			array(
        				'name' => 'filter[deleted]'
        			)
        		)
        	?>
        </td>
    </tr>
	<tr>
		<td colspan="2" align="right">
			<input type="submit" value=":: Filtrar ::" />
			&nbsp;
			<?php
    			echo link_to(
    				':: Limpar ::',
    				$sf_context->getModuleName().'/filter',
    				array('class'=>'botao')
    			);
			?>
		</td>
	</tr>
</table>
</form>